package com.qf.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.qf.mapper.DtsUserMapper;
import com.qf.pojo.DtsUser;
import com.qf.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    DtsUserMapper dtsUserMapper;
    @Override
    public long userCount() {

        QueryWrapper wrapper = new QueryWrapper();

        wrapper.eq("deleted",false);
        Integer integer = dtsUserMapper.selectCount(wrapper);

        return integer;
    }

    @Override
    public List<Map<String, Object>> getUser() {

        List<Map<String,Object>> list = dtsUserMapper.selectUserCount();
        return list;
    }


}
